/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb;

import exceptions.DataSourceException;
import exceptions.EmployeNotFoundException;
import exceptions.LoginException;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author Trasheur
 */
@Remote
public interface EmployeModelRemote {

    public Employe get(String username)
            throws EmployeNotFoundException,
            DataSourceException;

    public void create(Employe employe)
            throws DataSourceException;

    public void createAsync(Employe employe)
            throws DataSourceException;

    public List<Employe> getAll()
            throws DataSourceException;

    public void delete(String username)
            throws DataSourceException;

    public void update(Employe employe)
            throws DataSourceException;

    public String logon(String username, String password)
            throws LoginException,
            DataSourceException;
}
